Fix shortname generation.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 3 Apr 2003 17:27:38 +0000 (17:27 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 3 Apr 2003 17:27:38 +0000 (17:27 +0000)
gpsbabel/csv_util.c

index 1da64e47b30d5322998da3e8a8fcc498bc6c7809..aefebd80a1102b85ccde0d0d0e6ea03ea90b165c 100644 (file)
@@ -590,7 +590,8 @@ xcsv_waypt_pr(const waypoint *wpt)
 
     if ((anyname) && (global_opts.synthesize_shortnames)) {
        char *oldname = anyname;
-        anyname = mkshort(xcsv_file.mkshort_handle, oldname);
+        anyname = mkshort(xcsv_file.mkshort_handle, 
+               wpt->notes ? wpt->notes : wpt->description);
        xfree(oldname);
     }